<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>大客户下单统计</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Bdrun/shop_ordercount_list')}">
         用户手机号：<input type="text" name="formget[mobile]" style="width: 100px;" value="{$formget.mobile}"> &nbsp;&nbsp;
        大客户名称：
        <input type="text" name="formget[shop_name]" style="width: 100px;" value="{$formget.shop_name}"> &nbsp;&nbsp; &nbsp;&nbsp;
        下单时间：
        <input type="text" name="formget[start_time]" class="js-date" value="{$formget.start_time|default=''}" style="width:100px;" autocomplete="off">-
        <input type="text" class="js-date" name="formget[end_time]" value="{$formget.end_time}" style="width: 100px;" autocomplete="off">
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>

    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>所属区域</th>
                <th>客户名称</th>
                <th>客户电话</th>
                <th>发单量</th>
                <th>订单金额</th>
             <!--   <th>实付金额</th> -->
            </tr>
            </thead>
            <tbody>
            <foreach name="lists" item="vo" key="k">
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$vo.shop_area}</td>
                    <td>{$vo.shop_name}</td>
                    <td>{$vo['mobile']}</td>
                    <td>{$vo.order_counts}</td>
                    <td>{$vo.order_amount}</td>
                <!--    <td>{$vo.real_amount}</td> -->
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" >
    laydate({
        elem: '#order_month',
        format: 'YYYY-MM', // 分隔符可以任意定义，该例子表示只显示年月
        festival: true, //显示节日
        choose: function(datas){ //选择日期完毕的回调
            //alert('得到：'+datas);
//            alert($("#settl_month").val());
        }
    });

</script>
</body>
</html>